import { createApp } from 'vue';
import { createPinia } from 'pinia';
import ElementPlus from 'element-plus';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
import App from './App.vue';
import router from './router';

import 'element-plus/dist/index.css';
import 'bootstrap/dist/css/bootstrap.min.css';
import 'vant/lib/index.css';
import 'ant-design-vue/dist/antd.css';
import './styles/main.css';

const app = createApp(App);

app.use(createPinia());
app.use(router);
app.use(ElementPlus);

Object.entries(ElementPlusIconsVue).forEach(([name, component]) => {
	app.component(name, component);
});

app.mount('#app');
